<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>员工管理</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <%@include file="common.jsp" %>
    <script type="text/javascript" src="/js/views/employee.js"></script>
</head>
<body>
    <table id="emp_datagrid"></table>

<%--    新增/更新对话框--%>
    <div id="emp_dialog">
        <form id="emp_form" method="post">
            <table align="center" style="margin-top: 15px">
                <input type="hidden" name="id"/>
                <tr>
                    <td>账号</td>
                    <td><input type="text" name="username"></td>
                </tr>
                <tr>
                    <td>真实姓名</td>
                    <td><input type="text" name="realname"></td>
                </tr>
                <tr>
                    <td>联系方式</td>
                    <td><input type="text" name="tel"></td>
                </tr>
                <tr>
                    <td>邮箱</td>
                    <td><input type="text" name="email"></td>
                </tr>
                <tr>
                    <td>部门</td>
                    <td><input type="text" name="dept.id" class="easyui-combobox" data-options="valueField:'id',textField:'name',url:'/department_queryForEmp'"></td>
                </tr>
                <tr>
                    <td>入职时间</td>
                    <td><input type="text" name="inputtime" class="easyui-datebox"></td>
                </tr><tr>
            </tr>
            </table>
        </form>
        <%--    使用表格顶部的按钮--%>
        <div id="emp_datagrid_tb">
            <div>
                <a class="easyui-linkbutton" iconCls="icon-add" plain="true" data-cmd="add">新增</a>
                <a id="emp_datagrid_edit" class="easyui-linkbutton" iconCls="icon-edit" plain="true" data-cmd="edit">编辑</a>
                <a id="emp_datagrid_del" class="easyui-linkbutton" iconCls="icon-remove" plain="true" data-cmd="del">离职</a>
                <a class="easyui-linkbutton" iconCls="icon-reload" plain="reload" data-cmd="reload">刷新</a>
            </div>
            <div>
                关键字查询：<input name="keyWord"><a class="easyui-linkbutton" iconCls="icon-search" data-cmd="searchBtn">搜索</a>
            </div>
        </div>
<%--        对话框的底部按钮--%>
        <div id="emp_dialog_tt">
            <a class="easyui-linkbutton" iconCls="icon-save" plain="true" data-cmd="save">保存</a>
            <a class="easyui-linkbutton" iconCls="icon-cancel" plain="true" data-cmd="cancel">取消</a>
        </div>
    </div>
</body>
</html>
